//
//  NSString+SMC.h
//  SMCKit
//
//  Created by Ren JianSheng on 11-5-4.
//  Copyright 2011年 3gtv.net. All rights reserved.
//
// NSString扩展类
@interface NSString (QL)

// 判断字符串是否为空
+ (BOOL)ql_isEmptyString:(NSString *)string;

// 转为UTF-8编码(用于URL)
+ (NSString*)ql_toUTF8String:(NSString *)encodeString;

+ (NSString *)ql_toGBKString: (NSString *)encodeString;


// 拼接一个或多个字符串
- (NSString *)ql_stringsAppend:(NSString *)params, ... NS_REQUIRES_NIL_TERMINATION;

// 拼接一个或多个字符串,带盘符
- (NSString *)ql_stringsByAppendingPathComponent:(NSString *)params, ... NS_REQUIRES_NIL_TERMINATION;

// 版本对比
- (BOOL)ql_isNewerVersionThan:(NSString*)otherVersion;

// 获得带换行符的字符串,例如从plist中读取的字符串
- (NSString *)ql_stringWithLine;

- (int)ql_count;

- (CGSize)ql_computStringHeightWithFont:(UIFont*)font withMaxWidth:(CGFloat)maxwidth withMaxHeight:(CGFloat)maxHeight;

//查找URL中的文件名
+(NSString*) fileNameInURL:(NSString*)url;

@end
